﻿
namespace Admin.NET.Application.Service;


public class SysUserAllOutput
{
    public long Id { get; set; }

    /// <summary>
    /// 登录账号, 保持与JobNum一致, 或者Account为工号, JobNum为HisId
    /// </summary>
    public virtual string Account { get; set; }

    /// <summary>
    /// His工号或Id
    /// </summary>
    public string? JobNum { get; set; }

    /// <summary>
    /// 真实姓名
    /// </summary>
    public virtual string RealName { get; set; }

    /// <summary>
    /// 状态
    /// </summary>
    public StatusEnum Status { get; set; } = StatusEnum.Enable;

    /// <summary>
    /// 是否禁止选中,使用
    /// </summary>
    public bool IsEnabled { get { return Status == StatusEnum.Enable ? true : false; } }

    /// <summary>
    /// 科室Id
    /// </summary>
    public long OrgId { get; set; }

    /// <summary>
    /// 科室Id
    /// </summary>
    public string OrgName { get; set; }
    
    /// <summary>
    /// 科室Id
    /// </summary>
    public string OrgPid { get; set; }

    /// <summary>
    /// 职称
    /// </summary>
    public string? PosTitle { get; set; }
}


public class SysUserNameOutput
{
    /// <summary>
    /// Id
    /// </summary>
    public long Id { get; set; }
    /// <summary>
    /// 名字
    /// </summary>
    public string RealName { get; set; }

    /// <summary>
    /// 登录账号
    /// </summary>
    public  string Account { get; set; }
}

public class UserInfoOutput
{
    /// <summary>
    /// 租户id
    /// </summary>
    public long? TenantId { get; set; }

    /// <summary>
    /// 用户id
    /// </summary>
    public long Id { get; set; }

    /// <summary>
    /// 账号名称
    /// </summary>
    public string Account { get; set; }

    /// <summary>
    /// 真实姓名
    /// </summary>
    public string RealName { get; set; }

    /// <summary>
    /// 电话
    /// </summary>
    public string Phone { get; set; }

    /// <summary>
    /// 身份证
    /// </summary>
    public string IdCardNum { get; set; }

    /// <summary>
    /// 邮箱
    /// </summary>
    public string Email { get; set; }

    /// <summary>
    /// 账号类型
    /// </summary>
    public AccountTypeEnum AccountType { get; set; } = AccountTypeEnum.NormalUser;

    /// <summary>
    /// 头像
    /// </summary>
    public string Avatar { get; set; }

    /// <summary>
    /// 个人简介
    /// </summary>
    public string Introduction { get; set; }

    /// <summary>
    /// 地址
    /// </summary>
    public string Address { get; set; }

    /// <summary>
    /// 电子签名
    /// </summary>
    public string Signature { get; set; }

    /// <summary>
    /// 机构Id
    /// </summary>
    public long OrgId { get; set; }

    /// <summary>
    /// 机构名称
    /// </summary>
    public string OrgName { get; set; }

    /// <summary>
    /// 机构类型
    /// </summary>
    public string OrgType { get; set; }

    /// <summary>
    /// 职位名称
    /// </summary>
    public string PosName { get; set; }

    /// <summary>
    /// 按钮权限集合
    /// </summary>
    public List<string> Buttons { get; set; }

    /// <summary>
    /// 角色集合
    /// </summary>
    public List<long> RoleIds { get; set; }
    /// <summary>
    /// 附属机构id集合
    /// </summary>
    public List<long> ExtOrgIds { get; set; }
}